<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<html>
<head>
	<%@include file="includes/common/headCommonHtml.jsp" %>
	<title>LL-Login</title>
	<script src="<c:url value='/resources/epilog.js'/>"></script>
</head>
<body>
<%@include file="includes/common/prologHtml.jsp" %>
<div class="left-nav">Left Navigation</div>
<div class="main-contents">
<div class="server-message"></div>

<%
	String loginFailed = (String)session.getAttribute("loginFailed"); 
	if ("1".equals (loginFailed)) { 
		session.setAttribute("loginFailed", "");
%>
		<span class='error-message'>Error: Email address or password is wrong</span> <p>
<%	} %>

Please enter your log in information
<p>
<form:form method="post" action="/learnlang/loginFormPost" modelAttribute="loginFormData">   
<table class="login-form-table">
<tr><td>Email:</td><td><form:input path="email"/></td></tr>
<tr><td>Password:</td><td><form:input type="password" path="password"/></td></tr>
</table>
<p>
<input type="submit" class="login" value="Log in"/> 
</form:form>
<br/>
Are you new? Just <a href="<c:url value='/signupPage'/>">sign up</a> for free!
<p>
Forgot your password? You can request a <a href="<c:url value='/otherPages/passwordResetPage'/>">reset</a> here
<%@include file="includes/common/epilogHtml.jsp" %>

</body>
</html>
